# Use an official OpenJDK 8 runtime as a parent image
FROM openjdk:8-jdk-alpine

# Set the working directory in the container
WORKDIR /app

# 设置时区为 Asia/Shanghai
ENV TZ=Asia/Shanghai

# Copy the jar file into the container
COPY basic-project-0.0.1-SNAPSHOT.jar /app/basic-project.jar
COPY config /app/config

# Expose the port your Spring Boot application runs on
EXPOSE 8081

# Run the application
ENTRYPOINT ["java", "-jar", "/app/basic-project.jar"]
